<template>
  <div class="box">
      <div class="price">
           <span>&nbsp; 限时特惠&nbsp;</span>
           <p>￥<span>4688</span></p>
      </div>
      <div class="time">
          <p>距离结束还剩：</p>
        <van-count-down :time="time">
        <template #default="timeData">
            <span class="block">{{ timeData.hours }}</span>
            <span class="colon">:</span>
            <span class="block">{{ timeData.minutes }}</span>
            <span class="colon">:</span>
            <span class="block">{{ timeData.seconds }}</span>
        </template>
</van-count-down>

      </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
 
    .box{
        width: 4.14rem;
        height: 0.57rem;
        display: flex;
        justify-content: space-between;
        .price{
            background-image:linear-gradient(90deg, #FF313F 0%, #FF935A 100%) ;
            width: 2.84rem;
            padding-left: 0.1rem;
            span{
                color: white;
                background-color: #ed6f21;
                font-size: 0.05rem;
                line-height: 0.2rem;
            }
            p{
                color: white;
                margin-top: 0.1rem;
                span{
                    font-size: 0.20rem;
                    color: white;
                    font-weight: 600;
                    background-color: #FF313F;
                }
            }
        }
        .time{
            width: 1.2rem;
            height: 0.57rem;
            background-color: #fdf0e8;
            p{
                font-size: 0.05rem;
                color: #ed6f21;
                text-align: center;
                margin-top: 0.12rem;
            }
            .van-count-down{
                margin-left: 0.12rem;
            }
            .colon {
                display: inline-block;
                margin: 0 4px;
                color: #ed6f21;
                }
            .block {
                display: inline-block;
                width: 22px;
                color: #fff;
                font-size: 12px;
                text-align: center;
                background-color: #ed6f21;
                }
        }
    }
</style>